arm/mem_access: Walk the guest's pt in software
authorSergej Proskurin <proskurin@sec.in.tum.de>
Wed, 16 Aug 2017 13:17:44 +0000 (15:17 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 18 Aug 2017 17:27:48 +0000 (10:27 -0700)
commitbf3872d566972c9f8c7cd2b0e805d2d81da34dd3
tree10a48ce33287f34c580f54bb033575e28c5955b6
parent48fe062bd427f9ea1687851e2d668fab093dc115
arm/mem_access: Walk the guest's pt in software

In this commit, we make use of the gpt walk functionality introduced in
the previous commits. If mem_access is active, hardware-based gva to ipa
translation might fail, as gva_to_ipa uses the guest's translation
tables, access to which might be restricted by the active VTTBR. To
side-step potential translation errors in the function
p2m_mem_access_check_and_get_page due to restricted memory (e.g. to the
guest's page tables themselves), we walk the guest's page tables in
software.

Signed-off-by: Sergej Proskurin <proskurin@sec.in.tum.de>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mem_access.c